package com.soilflow.common.enums;

import java.math.BigDecimal;

/**
 * 手续费
 * 
 * @author soilflow
 */
public enum BetChargeFee
{
    DA("大", BigDecimal.ZERO),
    XIAO("小", BigDecimal.ZERO),
    DAN("单", BigDecimal.ZERO),
    SHUANG("双", BigDecimal.ZERO),
    DADAN("大单", new BigDecimal(0.07)),
    DASHUANG("大双", new BigDecimal(0.10)),
    XIAODAN("小单", new BigDecimal(0.10)),
    XIAOSHUANG("小双", new BigDecimal(0.07)),
    BEISHU("倍数",  new BigDecimal(0.034));

    private final String code;
    private final BigDecimal rate;

    BetChargeFee(String code, BigDecimal rate)
    {
        this.code = code;
        this.rate = rate;
    }

    public String getCode()
    {
        return code;
    }

    public BigDecimal getRate()
    {
        return rate;
    }
}
